package com.zdd.ehe.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdd.ehe.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-13
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 获取用户角色列表
     *
     * @param id
     * @return
     */
    public List<String> getRoles(Integer id);

    /**
     * 分页查询用户列表
     * @param page
     * @return
     */
    Page<User> getalluserbypage(Page<User> page);
}
